<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
  <head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
    </script>
    <script type="text/javascript" async
      src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML">
    </script>

    {% seo %}
    <style>
      p
      {
        word-break: break-word;
      }
      pre 
      {
        word-wrap: break-word;
        white-space: pre-wrap;
      }
      #BackToTop:hover 
      {
        background-color: #b5e853;
        color: black;
      }
      #BackToTop 
      {
      width: 50px;
      height: 40px;
      position: fixed;
      right: 50px;
      bottom: 30px;
      background-color: rgba(181,232,83,0);
      text-align: center;
      line-height: 40px;
      font-size: 15px;
      border-radius: 5px;
      box-shadow: 2px;
      color: rgba(181,232,83,1);
      user-select: none;
      transition: .25s;
      -moz-user-select: none;
      user-select: none;
      cursor: pointer;
      border: 1px solid #b5e853;
      }
    </style>
  </head>

  <body>

    <header>
      <div class="container">
        <h1><a href="https://fffengmjl.github.io/blog/index">{{ site.title | default: site.github.repository_name }}</a></h1>
        <h2>{{ site.description | default: site.github.project_tagline }}</h2>

        <section id="downloads">
          {% if site.show_downloads %}
            <a href="{{ site.github.zip_url }}" class="btn">Download as .zip</a>
            <a href="{{ site.github.tar_url }}" class="btn">Download as .tar.gz</a>
          {% endif %}
          <a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
        </section>
      </div>
    </header>

    <div class="container">
      <section id="main_content">
        {{ content }}
      </section>
    </div>

    {% if site.google_analytics %}
      <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
        ga('create', '{{ site.google_analytics }}', 'auto');
        ga('send', 'pageview');
      </script>
    {% endif %}

    <div id="BackToTop">TOP</div>
    <script>
      document.getElementById("BackToTop").onclick = function () {
        window.scrollTo({
          top: 0,
          behavior: "smooth"
        })
      }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js"></script>
    
  </body>
</html>